//
//  XSCommonTools.swift
//  WeiDo
//
//  Created by XISHAN on 16/3/8.
//  Copyright © 2016年 XISHAN. All rights reserved.
//

import UIKit

let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height

func RGB(r red:CGFloat, g: CGFloat, b: CGFloat) -> UIColor {
    
    return UIColor(red: red/255, green: g/255, blue: b/255, alpha: 1)
}

func RandomColor() -> UIColor {
    return RGB(r: CGFloat(random()%256), g: CGFloat(random()%256), b: CGFloat(random()%256))
}


class XSCommonTools: NSObject {

}
